<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>

<h3 style="color:#aaaaaa;">상세 내역</h3>

<table class="list" cellspacing="0" cellpadding="10" style="text-align:center;width:100%;">
	<tr class="table_title">
		<td>No.</td>
		<td>집행 날짜</td>
		<td>광고 Title</td>
		<td>카테고리</td>
		<td>게임명</td>
		<td>보장 PV</td>
		<td>게임 참여 수</td>
		<td>당첨자 목록</td>
		<td>비고</td>
	</tr>
	<c:forEach var="list" items="${resultList }">
		<tr>
			<td></td>
			<td>${list.timeToPlay }</td>
			<td>${list.contents_title }</td>
			<td>
				<c:if test="${list.service == 'ggong' }">꽁게임</c:if>
				<c:if test="${list.service == 'time' }">타임게임</c:if>
				<c:if test="${list.service == 'special' }">스페셜게임</c:if>
			</td>
			<td>${list.game_title }</td>
			<td>${list.promisepv }</td>
			<td><!-- 게임 참여 수 --></td>
			<td>
				<c:if test="${list.status == '종료' }">
				<input type="button" value="당첨자 보기"
					onclick="window.open('./winnerListPopup.ga?ad_no=${list.ad_no}&days=${list.timeToPlay }', 'winner', 'scrollbars=yes,status=no,resizable=no,width=1100,height=800')"
				/>
				</c:if>
				<c:if test="${list.status != '종료' }">
					미종료
				</c:if>
			</td>
			<td>${list.status }</td>
		</tr>
	</c:forEach>
</table>

</body>
</html>